#include "TcpServer.hpp"

void Usage(char* arg)
{
    std::cout << "Usage:" << arg <<" port" << std::endl;
}

//./TcpServer port
int main(int argc,char* argv[])
{
    if(argc != 2)
    {
        Usage(argv[0]);
        exit(0);
    }

    uint16_t port = std::stoi(argv[1]);
    TcpServer tcp(port);
    tcp.InitServer();
    tcp.Loop();
    
    return 0;

}